/**
 * COPYRIGHT Robam Industrial Group Co. Ltd. Limited
 * All right reserved.
 */
package com.robam.cloud.component.auth.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author 薛铁琪
 * @CreateTime 2021/1/11 15:55
 * @Version 1.0
 */
@Component

public class WebSecurityConfig extends WebSecurityConfigurerAdapter {

    @Autowired
    IgnoreUrlConfig ignoreUrlConfig;


    @Override
    public void configure(WebSecurity web) throws Exception {
        for (String item : ignoreUrlConfig.getUrls()) {
            web.ignoring().antMatchers(item);

        }
    }

}
